import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.VITE_BASE_ROUTER),
  scrollBehavior: () => ({
    y: 0
  }),
  base: import.meta.env.VITE_BASE_ROUTER,
  routes: [
    {
      path: '/404',
      component: () => import('@/views/404.vue'),
      hidden: true,
      meta: {
        title: '404',
        noAuth: true
      }
    },
    // 报表首页
    {
      path: '/',
      component: () => import('@/views/admin/admin_Index.vue'),
      name: 'admin',
      meta: {
        title: '分公司数据报表',
        noAuth: true
      }
    },
    {
      path: '/admin',
      component: () => import('@/views/admin/admin_Index.vue'),
      name: 'admin',
      meta: {
        title: '分公司数据报表',
        noAuth: true
      }
    },

    {
      path: '/saleManagerReport3',
      component: () => import('@/views/admin/saleManagerReport3.vue'),
      name: 'saleManagerReport3',
      meta: {
        title: '客户经理填写报表',
        noAuth: true
      }
    },
    {
      path: '/deptManagerReport3',
      component: () => import('@/views/admin/deptManagerReport3.vue'),
      name: 'deptManagerReport3',
      meta: {
        title: '营业部经理填写报表',
        noAuth: true
      }
    },
    {
      path: '/directorsReport3',
      component: () => import('@/views/admin/directorsReport3.vue'),
      name: 'directorsReport3',
      meta: {
        title: '总监填写报表',
        noAuth: true
      }
    },

    {
      path: '/saleManagerTutoringTop',
      component: () => import('@/views/admin/Leaderboards/saleManagerTutoringTop.vue'),
      name: 'saleManagerTutoringTop',
      meta: {
        title: '客户经理一日三辅导上周榜单',
        noAuth: true
      }
    },
    {
      path: '/saleManagerPreserveTop',
      component: () => import('@/views/admin/Leaderboards/saleManagerPreserveTop.vue'),
      name: 'saleManagerPreserveTop',
      meta: {
        title: '客户经理一周一维护上周榜单',
        noAuth: true
      }
    },
    {
      path: '/saleManagerTrainingTop',
      component: () => import('@/views/admin/Leaderboards/saleManagerTrainingTop.vue'),
      name: 'saleManagerTrainingTop',
      meta: {
        title: '客户经理一周一外训上周榜单',
        noAuth: true
      }
    },
    {
      path: '/deptManagerTutoringTop',
      component: () => import('@/views/admin/Leaderboards/deptManagerTutoringTop.vue'),
      name: 'deptManagerTutoringTop',
      meta: {
        title: '营业部经理一日三走访上周榜单',
        noAuth: true
      }
    },
    {
      path: '/deptManagerSalonTop',
      component: () => import('@/views/admin/Leaderboards/deptManagerSalonTop.vue'),
      name: 'deptManagerSalonTop',
      meta: {
        title: '营业部经理一周一微沙上周榜单',
        noAuth: true
      }
    },
    {
      path: '/deptManagerLargeorderTop',
      component: () => import('@/views/admin/Leaderboards/deptManagerLargeorderTop.vue'),
      name: 'deptManagerLargeorderTop',
      meta: {
        title: '营业部经理一周一大单上周榜单',
        noAuth: true
      }
    },
    {
      path: '/directorsTutoringTop',
      component: () => import('@/views/admin/Leaderboards/directorsTutoringTop.vue'),
      name: 'directorsTutoringTop',
      meta: {
        title: '总监一日三走访上周榜单',
        noAuth: true
      }
    },
    {
      path: '/directorsPreserveTop',
      component: () => import('@/views/admin/Leaderboards/directorsPreserveTop.vue'),
      name: 'directorsPreserveTop',
      meta: {
        title: '总监一周一维护上周榜单',
        noAuth: true
      }
    },
    {
      path: '/directorsMonthprojectTop',
      component: () => import('@/views/admin/Leaderboards/directorsMonthprojectTop.vue'),
      name: 'directorsMonthprojectTop',
      meta: {
        title: '总监一月一项目上周榜单',
        noAuth: true
      }
    },

    {
      path: '/admin_directorStatement',
      component: () => import('@/views/admin/directorStatement.vue'),
      name: 'admin_directorStatement',
      meta: {
        title: '总监报表（以总监单位）',
        noAuth: true
      }
    },
    {
      path: '/admin_managerSatement',
      component: () => import('@/views/admin/managerSatement.vue'),
      name: 'admin_managerSatement',
      meta: {
        title: '客户经理报表（以客户经理为单位）',
        noAuth: true
      }
    },
    {
      path: '/admin_managerSatementDept',
      component: () => import('@/views/admin/managerSatementDept.vue'),
      name: 'admin_managerSatementDept',
      meta: {
        title: '客户经理报表（以机构为单位）',
        noAuth: true
      }
    },
    {
      path: '/admin_saleManagerStatement',
      component: () => import('@/views/admin/saleManagerStatement.vue'),
      name: 'admin_saleManagerStatement',
      meta: {
        title: '营业部经理报表（以营业部经理单位）',
        noAuth: true
      }
    },
    {
      path: '/admin_saleManagerStatementDept',
      component: () => import('@/views/admin/saleManagerStatementDept.vue'),
      name: 'admin_saleManagerStatementDept',
      meta: {
        title: '营业部经理报表（以机构单位）',
        noAuth: true
      }
    },
    {
      path: '/directorStatement_DailyList',
      component: () => import('@/views/admin/recordList/directorStatement/DailyList.vue'),
      name: 'directorStatement_DailyList',
      meta: {
        title: '处总监日走访记录',
        noAuth: true
      }
    },
    {
      path: '/directorStatement_MonthlyPlanList',
      component: () => import('@/views/admin/recordList/directorStatement/MonthlyPlanList.vue'),
      name: 'directorStatement_MonthlyPlanList',
      meta: {
        title: '总监月度计划记录',
        noAuth: true
      }
    },
    {
      path: '/directorStatement_MonthlyReportList',
      component: () => import('@/views/admin/recordList/directorStatement/MonthlyReportList.vue'),
      name: 'directorStatement_MonthlyReportList',
      meta: {
        title: '总监支行月报告记录',
        noAuth: true
      }
    },
    {
      path: '/directorStatement_MonthProjectList',
      component: () => import('@/views/admin/recordList/directorStatement/MonthProjectList.vue'),
      name: 'directorStatement_MonthProjectList',
      meta: {
        title: '总监项目记录',
        noAuth: true
      }
    },
    {
      path: '/directorStatement_SeasonalStartList',
      component: () => import('@/views/admin/recordList/directorStatement/SeasonalStartList.vue'),
      name: 'directorStatement_SeasonalStartList',
      meta: {
        title: '总监一季一启动记录',
        noAuth: true
      }
    },
    {
      path: '/directorStatement_WeeklyPreserveRecordList',
      component: () =>
        import('@/views/admin/recordList/directorStatement/WeeklyPreserveRecordList.vue'),
      name: 'directorStatement_WeeklyPreserveRecordList',
      meta: {
        title: '总监维护记录',
        noAuth: true
      }
    },

    {
      path: '/managerSatement_CooperativeOfBranchesList',
      component: () =>
        import('@/views/admin/recordList/managerSatement/CooperativeOfBranchesList.vue'),
      name: 'managerSatement_CooperativeOfBranchesList',
      meta: {
        title: '客户经理网点合作经营记录',
        noAuth: true
      }
    },
    {
      path: '/managerSatement_DailyTutoringRecordList',
      component: () =>
        import('@/views/admin/recordList/managerSatement/DailyTutoringRecordList.vue'),
      name: 'managerSatement_DailyTutoringRecordList',
      meta: {
        title: '客户经理辅导记录',
        noAuth: true
      }
    },
    {
      path: '/managerSatement_LargeOrderRecordList',
      component: () => import('@/views/admin/recordList/managerSatement/LargeOrderRecordList.vue'),
      name: 'managerSatement_LargeOrderRecordList',
      meta: {
        title: '客户经理大单记录',
        noAuth: true
      }
    },
    {
      path: '/managerSatement_MicrosalonRecordList',
      component: () => import('@/views/admin/recordList/managerSatement/MicrosalonRecordList.vue'),
      name: 'managerSatement_MicrosalonRecordList',
      meta: {
        title: '客户经理微沙龙记录',
        noAuth: true
      }
    },
    {
      path: '/managerSatement_MonthlyPlanList',
      component: () => import('@/views/admin/recordList/managerSatement/MonthlyPlanList.vue'),
      name: 'managerSatement_MonthlyPlanList',
      meta: {
        title: '月度计划记录',
        noAuth: true
      }
    },
    {
      path: '/managerSatement_WeeklyOutsideTrainingRecordList',
      component: () =>
        import('@/views/admin/recordList/managerSatement/WeeklyOutsideTrainingRecordList.vue'),
      name: 'managerSatement_WeeklyOutsideTrainingRecordList',
      meta: {
        title: '客户经理外训记录',
        noAuth: true
      }
    },
    {
      path: '/managerSatement_WeeklyPreserveRecordList',
      component: () =>
        import('@/views/admin/recordList/managerSatement/WeeklyPreserveRecordList.vue'),
      name: 'managerSatement_WeeklyPreserveRecordList',
      meta: {
        title: '客户经理维护记录',
        noAuth: true
      }
    },

    {
      path: '/saleManagerStatement_DailyList',
      component: () => import('@/views/admin/recordList/saleManagerStatement/DailyList.vue'),
      name: 'saleManagerStatement_DailyList',
      meta: {
        title: '营业部经理日走访记录',
        noAuth: true
      }
    },
    {
      path: '/saleManagerStatement_MonthlyPlanList',
      component: () => import('@/views/admin/recordList/saleManagerStatement/MonthlyPlanList.vue'),
      name: 'saleManagerStatement_MonthlyPlanList',
      meta: {
        title: '营业部经理月度计划记录',
        noAuth: true
      }
    },
    {
      path: '/saleManagerStatement_MonthlyReportList',
      component: () =>
        import('@/views/admin/recordList/saleManagerStatement/MonthlyReportList.vue'),
      name: 'saleManagerStatement_MonthlyReportList',
      meta: {
        title: '营业部经理月度计划记录',
        noAuth: true
      }
    },
    {
      path: '/saleManagerStatement_SeasonalStartList',
      component: () =>
        import('@/views/admin/recordList/saleManagerStatement/SeasonalStartList.vue'),
      name: 'saleManagerStatement_SeasonalStartList',
      meta: {
        title: '营业部经理一季一启动记录',
        noAuth: true
      }
    },
    {
      path: '/saleManagerStatement_WeekLargeOrderList',
      component: () =>
        import('@/views/admin/recordList/saleManagerStatement/WeekLargeOrderList.vue'),
      name: 'saleManagerStatement_WeekLargeOrderList',
      meta: {
        title: '营业部经理大单记录',
        noAuth: true
      }
    },
    {
      path: '/saleManagerStatement_WeekSalonList',
      component: () => import('@/views/admin/recordList/saleManagerStatement/WeekSalonList.vue'),
      name: 'saleManagerStatement_WeekSalonList',
      meta: {
        title: '营业部经理微沙龙记录',
        noAuth: true
      }
    },

    // 客户经理首页
    {
      path: '/CustomerManager',
      component: () => import('@/views/CustomerManager/CustomerManager_Index.vue'),
      name: 'CustomerManager',
      meta: {
        title: '客户经理汇报汇总',
        noAuth: true
      }
    },
    {
      path: '/saleManagerReport',
      component: () => import('@/views/CustomerManager/saleManagerReport.vue'),
      name: 'saleManagerReport',
      meta: {
        title: '客户经理汇报汇总',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_DailyTutoring',
      component: () => import('@/views/CustomerManager/DailyTutoring.vue'),
      name: 'CustomerManager_DailyTutoring',
      meta: {
        title: '客户经理一日三辅导',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_WeeklyOutsideTraining',
      component: () => import('@/views/CustomerManager/WeeklyOutsideTraining.vue'),
      name: 'CustomerManager_WeeklyOutsideTraining',
      meta: {
        title: '客户经理一周一外训',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_WeeklyPreserve',
      component: () => import('@/views/CustomerManager/WeeklyPreserve.vue'),
      name: 'CustomerManager_WeeklyPreserve',
      meta: {
        title: '客户经理一周一维护',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_LargeOrder',
      component: () => import('@/views/CustomerManager/LargeOrder.vue'),
      name: 'CustomerManager_LargeOrder',
      meta: {
        title: '客户经理一月一大单',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_Microsalon',
      component: () => import('@/views/CustomerManager/Microsalon.vue'),
      name: 'CustomerManager_Microsalon',
      meta: {
        title: '客户经理一月一微沙',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_MonthlyPlan',
      component: () => import('@/views/CustomerManager/MonthlyPlan.vue'),
      name: 'CustomerManager_MonthlyPlan',
      meta: {
        title: '客户经理月度计划',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_CooperativeOfBranches',
      component: () => import('@/views/CustomerManager/CooperativeOfBranches.vue'),
      name: 'CustomerManager_CooperativeOfBranches',
      meta: {
        title: '客户经理网点合作经营',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_DailyTutoringRecordList',
      component: () => import('@/views/CustomerManager/DailyTutoringRecordList.vue'),
      name: 'CustomerManager_DailyTutoringRecordList',
      meta: {
        title: '客户经理辅导记录',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_WeeklyOutsideTrainingRecordList',
      component: () => import('@/views/CustomerManager/WeeklyOutsideTrainingRecordList.vue'),
      name: 'CustomerManager_WeeklyOutsideTrainingRecordList',
      meta: {
        title: '客户经理外训记录',
        noAuth: true
      }
    },

    {
      path: '/CustomerManager_WeeklyPreserveRecordList',
      component: () => import('@/views/CustomerManager/WeeklyPreserveRecordList.vue'),
      name: 'CustomerManager_WeeklyPreserveRecordList',
      meta: {
        title: '客户经理维护记录',
        noAuth: true
      }
    },

    {
      path: '/CustomerManager_LargeOrderRecordList',
      component: () => import('@/views/CustomerManager/LargeOrderRecordList.vue'),
      name: 'CustomerManager_LargeOrderRecordList',
      meta: {
        title: '客户经理大单记录',
        noAuth: true
      }
    },

    {
      path: '/CustomerManager_MicrosalonRecordList',
      component: () => import('@/views/CustomerManager/MicrosalonRecordList.vue'),
      name: 'CustomerManager_MicrosalonRecordList',
      meta: {
        title: '客户经理微沙龙记录',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_MonthlyPlanList',
      component: () => import('@/views/CustomerManager/MonthlyPlanList.vue'),
      name: 'CustomerManager_MonthlyPlanList',
      meta: {
        title: '月度计划记录',
        noAuth: true
      }
    },
    {
      path: '/CustomerManager_CooperativeOfBranchesList',
      component: () => import('@/views/CustomerManager/CooperativeOfBranchesList.vue'),
      name: 'CustomerManager_CooperativeOfBranchesList',
      meta: {
        title: '客户经理网点合作经营记录',
        noAuth: true
      }
    },
    // 营业部经理首页
    {
      path: '/SalesManager',
      component: () => import('@/views/SalesManager/SalesManager_Index.vue'),
      name: 'SalesManager',
      meta: {
        title: '营业部经理汇报汇总',
        noAuth: true
      }
    },
    {
      path: '/saleManagerReport2',
      component: () => import('@/views/SalesManager/saleManagerReport2.vue'),
      name: 'saleManagerReport2',
      meta: {
        title: '客户经理报表',
        noAuth: true
      }
    },
    {
      path: '/deptManagerReport',
      component: () => import('@/views/SalesManager/deptManagerReport.vue'),
      name: 'deptManagerReport',
      meta: {
        title: '客户经理报表',
        noAuth: true
      }
    },
    {
      path: '/SalesManager_Daily',
      component: () => import('@/views/SalesManager/Daily.vue'),
      name: 'SalesManager_Daily',
      meta: {
        title: '营业部经理一日三走访',
        noAuth: true
      }
    },
    {
      path: '/SalesManager_WeekSalon',
      component: () => import('@/views/SalesManager/WeekSalon.vue'),
      name: 'SalesManager_WeekSalon',
      meta: {
        title: '营业部经理一周一微沙',
        noAuth: true
      }
    },
    {
      path: '/SalesManager_WeekLargeOrder',
      component: () => import('@/views/SalesManager/WeekLargeOrder.vue'),
      name: 'SalesManager_WeekLargeOrder',
      meta: {
        title: '营业部经理一周一大单',
        noAuth: true
      }
    },
    {
      path: '/SalesManager_MonthlyPlan',
      component: () => import('@/views/SalesManager/MonthlyPlan.vue'),
      name: 'SalesManager_MonthlyPlan',
      meta: {
        title: '营业部经理月度计划',
        noAuth: true
      }
    },
    {
      path: '/SalesManager_MonthlyReport',
      component: () => import('@/views/SalesManager/MonthlyReport.vue'),
      name: 'SalesManager_MonthlyReport',
      meta: {
        title: '营业部经理支行月汇报',
        noAuth: true
      }
    },
    {
      path: '/SalesManager_SeasonalStart',
      component: () => import('@/views/SalesManager/SeasonalStart.vue'),
      name: 'SalesManager_SeasonalStart',
      meta: {
        title: '营业部经理一季一启动',
        noAuth: true
      }
    },

    {
      path: '/SalesManager_DailyList',
      component: () => import('@/views/SalesManager/DailyList.vue'),
      name: 'SalesManager_DailyList',
      meta: {
        title: '营业部经理日走访记录',
        noAuth: true
      }
    },

    {
      path: '/SalesManager_WeekSalonList',
      component: () => import('@/views/SalesManager/WeekSalonList.vue'),
      name: 'SalesManager_WeekSalonList',
      meta: {
        title: '营业部经理微沙龙记录',
        noAuth: true
      }
    },
    {
      path: '/SalesManager_WeekLargeOrderList',
      component: () => import('@/views/SalesManager/WeekLargeOrderList.vue'),
      name: 'SalesManager_WeekLargeOrderList',
      meta: {
        title: '营业部经理大单记录',
        noAuth: true
      }
    },
    {
      path: '/SalesManager_MonthlyPlanList',
      component: () => import('@/views/SalesManager/MonthlyPlanList.vue'),
      name: 'SalesManager_MonthlyPlanList',
      meta: {
        title: '营业部经理月度计划记录',
        noAuth: true
      }
    },

    {
      path: '/SalesManager_MonthlyReportList',
      component: () => import('@/views/SalesManager/MonthlyReportList.vue'),
      name: 'SalesManager_MonthlyReportList',
      meta: {
        title: '营业部经理支行汇报记录',
        noAuth: true
      }
    },

    {
      path: '/SalesManager_SeasonalStartList',
      component: () => import('@/views/SalesManager/SeasonalStartList.vue'),
      name: 'SalesManager_SeasonalStartList',
      meta: {
        title: '营业部经理一季一启动记录',
        noAuth: true
      }
    },

    {
      path: '/SalesManager_managerSatement',
      component: () => import('@/views/SalesManager/managerSatement.vue'),
      name: 'SalesManager_managerSatement',
      meta: {
        title: '客户经理报表（以客户经理为单位）',
        noAuth: true
      }
    },

    {
      path: '/recordList_CooperativeOfBranchesList',
      component: () => import('@/views/SalesManager/recordList/CooperativeOfBranchesList.vue'),
      name: 'recordList_CooperativeOfBranchesList',
      meta: {
        title: '营业部经理网点合作经营记录',
        noAuth: true
      }
    },
    {
      path: '/recordList_DailyTutoringRecordList',
      component: () => import('@/views/SalesManager/recordList/DailyTutoringRecordList.vue'),
      name: 'recordList_DailyTutoringRecordList',
      meta: {
        title: '营业部经理辅导记录',
        noAuth: true
      }
    },
    {
      path: '/recordList_LargeOrderRecordList',
      component: () => import('@/views/SalesManager/recordList/LargeOrderRecordList.vue'),
      name: 'recordList_LargeOrderRecordList',
      meta: {
        title: '营业部经理大单记录',
        noAuth: true
      }
    },
    {
      path: '/recordList_MicrosalonRecordList',
      component: () => import('@/views/SalesManager/recordList/MicrosalonRecordList.vue'),
      name: 'recordList_MicrosalonRecordList',
      meta: {
        title: '营业部经理微沙龙记录',
        noAuth: true
      }
    },
    {
      path: '/recordList_MonthlyPlanList',
      component: () => import('@/views/SalesManager/recordList/MonthlyPlanList.vue'),
      name: 'recordList_MonthlyPlanList',
      meta: {
        title: '营业部经理月度计划记录',
        noAuth: true
      }
    },
    {
      path: '/recordList_WeeklyOutsideTrainingRecordList',
      component: () =>
        import('@/views/SalesManager/recordList/WeeklyOutsideTrainingRecordList.vue'),
      name: 'recordList_WeeklyOutsideTrainingRecordList',
      meta: {
        title: '营业部经理外训记录',
        noAuth: true
      }
    },
    {
      path: '/recordList_WeeklyPreserveRecordList',
      component: () => import('@/views/SalesManager/recordList/WeeklyPreserveRecordList.vue'),
      name: 'recordList_WeeklyPreserveRecordList',
      meta: {
        title: '营业部经理维护记录',
        noAuth: true
      }
    },

    //总监首页
    {
      path: '/director',
      component: () => import('@/views/director/director_Index.vue'),
      name: 'director',
      meta: {
        title: '处总监汇报汇总',
        noAuth: true
      }
    },
    {
      path: '/directorsReport',
      component: () => import('@/views/director/directorsReport.vue'),
      name: 'directorsReport',
      meta: {
        title: '我的填写情况',
        noAuth: true
      }
    },
    {
      path: '/deptManagerReport2',
      component: () => import('@/views/director/deptManagerReport2.vue'),
      name: 'deptManagerReport2',
      meta: {
        title: '营业部经理报表',
        noAuth: true
      }
    },
    {
      path: '/saleManagerReport4',
      component: () => import('@/views/director/saleManagerReport4.vue'),
      name: 'saleManagerReport4',
      meta: {
        title: '客户经理报表',
        noAuth: true
      }
    },
    {
      path: '/director_Daily',
      component: () => import('@/views/director/Daily.vue'),
      name: 'director_Daily',
      meta: {
        title: '总监一日三走访',
        noAuth: true
      }
    },
    {
      path: '/director_WeeklyPreserve',
      component: () => import('@/views/director/WeeklyPreserve.vue'),
      name: 'director_WeeklyPreserve',
      meta: {
        title: '总监一周一维护',
        noAuth: true
      }
    },
    {
      path: '/director_MonthProject',
      component: () => import('@/views/director/MonthProject.vue'),
      name: 'director_MonthProject',
      meta: {
        title: '处总监一月一项目',
        noAuth: true
      }
    },
    {
      path: '/director_MonthlyReport',
      component: () => import('@/views/director/MonthlyReport.vue'),
      name: 'director_MonthlyReport',
      meta: {
        title: '总监支行月报告',
        noAuth: true
      }
    },
    {
      path: '/director_MonthlyPlan',
      component: () => import('@/views/director/MonthlyPlan.vue'),
      name: 'director_MonthlyPlan',
      meta: {
        title: '总监月度计划',
        noAuth: true
      }
    },
    {
      path: '/director_SeasonalStart',
      component: () => import('@/views/director/SeasonalStart.vue'),
      name: 'director_SeasonalStart',
      meta: {
        title: '总监一季一启动',
        noAuth: true
      }
    },

    {
      path: '/director_DailyList',
      component: () => import('@/views/director/DailyList.vue'),
      name: 'director_DailyList',
      meta: {
        title: '处总监日走访记录',
        noAuth: true
      }
    },
    {
      path: '/director_WeeklyPreserveRecordList',
      component: () => import('@/views/director/WeeklyPreserveRecordList.vue'),
      name: 'director_WeeklyPreserveRecordList',
      meta: {
        title: '总监维护记录',
        noAuth: true
      }
    },
    {
      path: '/director_MonthProjectList',
      component: () => import('@/views/director/MonthProjectList.vue'),
      name: 'director_MonthProjectList',
      meta: {
        title: '总监项目记录',
        noAuth: true
      }
    },

    {
      path: '/director_MonthlyReportList',
      component: () => import('@/views/director/MonthlyReportList.vue'),
      name: 'director_MonthlyReportList',
      meta: {
        title: '总监支行月报告记录',
        noAuth: true
      }
    },

    {
      path: '/director_MonthlyPlanList',
      component: () => import('@/views/director/MonthlyPlanList.vue'),
      name: 'director_MonthlyPlanList',
      meta: {
        title: '总监月度计划记录',
        noAuth: true
      }
    },
    {
      path: '/director_SeasonalStartList',
      component: () => import('@/views/director/SeasonalStartList.vue'),
      name: 'director_SeasonalStartList',
      meta: {
        title: '总监一季一启动记录',
        noAuth: true
      }
    },
    {
      path: '/director_saleManagerStatement',
      component: () => import('@/views/director/saleManagerStatement.vue'),
      name: 'director_saleManagerStatement',
      meta: {
        title: '总监查看营业部经理报表（以营业部经理单位）',
        noAuth: true
      }
    },

    {
      path: '/director_DailyList',
      component: () => import('@/views/director/recordList/DailyList.vue'),
      name: 'director_DailyList',
      meta: {
        title: '营业部经理日走访记录',
        noAuth: true
      }
    },
    {
      path: '/director_MonthlyPlanList',
      component: () => import('@/views/director/recordList/MonthlyPlanList.vue'),
      name: 'director_MonthlyPlanList',
      meta: {
        title: '营业部经理月度计划记录',
        noAuth: true
      }
    },
    {
      path: '/director_MonthlyReportList',
      component: () => import('@/views/director/recordList/MonthlyReportList.vue'),
      name: 'director_MonthlyReportList',
      meta: {
        title: '营业部经理支行汇报记录',
        noAuth: true
      }
    },
    {
      path: '/director_SeasonalStartList',
      component: () => import('@/views/director/recordList/SeasonalStartList.vue'),
      name: 'director_SeasonalStartList',
      meta: {
        title: '营业部经理一季一启动记录',
        noAuth: true
      }
    },
    {
      path: '/director_WeekLargeOrderList',
      component: () => import('@/views/director/recordList/WeekLargeOrderList.vue'),
      name: 'director_WeekLargeOrderList',
      meta: {
        title: '营业部经理大单记录',
        noAuth: true
      }
    },
    {
      path: '/director_WeekSalonList',
      component: () => import('@/views/director/recordList/WeekSalonList.vue'),
      name: 'director_WeekSalonList',
      meta: {
        title: '营业部经理微沙龙记录',
        noAuth: true
      }
    },
    {
      path: '/getNumberOfParticipants',
      component: () => import('@/views/test/getNumberOfParticipants.vue'),
      name: 'getNumberOfParticipants',
      meta: {
        title: '获取图片信息',
        noAuth: true
      }
    },

    // 404 page must be placed at the end !!!
    {
      path: '/:catchAll(.*)',
      redirect: '/404',
      hidden: true,
      meta: {
        title: '404',
        noAuth: true
      }
    }
  ]
})
router.beforeEach((to, from, next) => {
  /* 路由发生前 */
  if (to.meta.title) {
    document.title = import.meta.env.VITE_APP_NAME + '-' + to.meta.title
  }
  if (to.meta.noAuth) {
    next()
  }
})
router.afterEach(() => {
  /* 路由发生后 */
})
export default router
